import request from '/@/utils/request';

/**
 * 
 * 
 */
export function useVillageApi() {
	return {
		// getFloorTreeList: (params?: object) => {
		// 	return request<any, AjaxResult>({
		// 		url: '/village/PageList',
		// 		method: 'get',
		// 		params,
		// 	});
		// },
		addVillage: (data={}) => {
			return request<any, AjaxResult>({
				url: '/village/Add',
				method: 'post',
				data,
			});
		},
		editVillage: (data={}) => {
			return request<any, AjaxResult>({
				url: '/village/Update',
				method: 'post',
				data,
			});
		},
		deleteVillage: (data={}) => {
			return request<any, AjaxResult>({
				url: '/village/Delete',
				method: 'post',
				data,
			});
		},
		getVillage: (params?: object) => {
			return request<any, AjaxResult>({
				url: '/village/Detail',
				method: 'get',
				params,
			});
		},
		// getOrgTreeList: (params?: object) => {
		// 	return request<any, AjaxResult>({
		// 		url: '/org/TreeList?id=0',
		// 		method: 'get',
		// 		params,
		// 	});
		// },
		// getOrgList: (params?: object) => {
		// 	return request<any, AjaxResult>({
		// 		url: '/org/List',
		// 		method: 'get',
		// 		params,
		// 	});
		// },
	};
}
